package com.jtbd.service.campus;

import com.jtbd.domain.CourseClass;
import com.jtbd.mapper.CourseClassMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class CourseClassService {
    @Resource
    private CourseClassMapper courseClassMapper;

    /**
     * 添加课程班级
     *
     * @param courseClass 课程班级信息
     * @return 新增的课程班级ID
     */
    public Long addCourseClass(CourseClass courseClass) {
        int insertResult = courseClassMapper.insert(courseClass);
        if (insertResult > 0) {
            return courseClass.getId();
        }
        return null;
    }
}
